﻿using Quartz;

namespace CleanArchitecture.Infrastructure.Entities
{
    public static partial class EntityEnumConfig
    {
        public enum LockState
        {
            InActive = 0,
            Active = 1
        }

        public enum DeleteState
        {
            Active = 0,
            Deleted = 1
        }

        public enum YesorNo
        {
            No = 0,
            YES = 1
        }
        /// <summary>
        /// Password format
        /// </summary>
        public enum PasswordFormat
        {
            /// <summary>
            /// DavidLee 2019/12/31 Add None to represent to default value
            /// </summary>
            None = 0,
            /// <summary>
            /// Clear
            /// </summary>
            Clear = 1,

            /// <summary>
            /// Hashed
            /// </summary>
            Hashed = 2,

            /// <summary>
            /// Encrypted
            /// </summary>
            Encrypted = 3
        }
        /// <summary>
        /// 前端在用户注册或更改密码时校验输入密码强度
        /// 分别对应 低/中/高三个级别
        /// </summary>
        public enum PasswordStrongLevel
        {
            Weak = 1,
            Medium = 2,
            Strong = 3
        }
        /// <summary>
        /// NavMenu indicate Backend Navi Menus
        /// </summary>
        public enum SysModuleType
        {
            Root = 1,
            TopNaviMenu = 2, 
            LeftNaviMenu = 3,
            ModulePage = 4
        }
        /// PageBtn indicate Buttons Operate for all Buttons
        /// RecordBtn indicate Buttons operate for the specific Record
        /// GroupToolBtn indicates Buttons for tools group 
        public enum SystemModuleButtonType
        {
            PageBtn = 1,
            RecordBtn = 2,
            GroupToolBtn = 3
        }
        /// <summary>
        /// 文章/博客/留言公开度
        /// </summary>
        public enum WhoCanSee
        {
            //仅发布者自已可见
            OnlyMe = 0,
            //仅网站管理员可见 --针对留言
            OnlyAdminUser = 1,
            //选定的系统用户角色
            OnlyAdminRole = 2,
            //全部可见
            EveryOne = 3
        }

        public enum FileStoreType
        {
            LocalStorage = 1,
            QiniuCloud =2
        }

        public  enum DataDicGroup
        {
            Oragnize = 1, 
            //系统站点管理- 电脑端/手机端
            ClientApp = 2,

            ModuleButton = 10
        }

        public enum DataType
        {
            Root = 1,
            SystemModule = 2,
            BusinessModule = 3,

            //当DataDicTree DataDicGroup为 ClientApp时定义站点客户端类类型
            //根节点(ParentId = 0)的DataType指定默认客户端站点
            ClientPC = 100,
            ClientMobile = 101
        }
        /// <summary>
        /// 标识前端页面导航栏栏目类型
        /// </summary>
        public enum ColumnType
        {
            //首页栏
            HomeIndex = 1,
            //新闻/文章栏
            NewsColumn = 2,
            //如果有其他栏，依次在后面添加分类
            //博客栏
            BlogColumn = 3,
        }
        /// <summary>
        /// Url Target 
        /// </summary>
        public enum UrlTarget
        {
            Self = 1,
            NewWindow = 2
        }

        public enum AdertiseDisplay
        {
            PC = 1,
            Mobile = 2
        }

        public enum AdertiseType
        {
            /// <summary>
            /// 轮播图列表
            /// </summary>
            CarouselImages = 1,
            /// <summary>
            /// 友情链接 - 文字
            /// </summary>
            TextLinks = 2,
            /// <summary>
            /// 友情链接 - 图片
            /// </summary>
            ImageLinks = 3,
            /// <summary>
            /// 固定位置单图
            /// </summary>
            StaticImage = 4,
            /// <summary>
            /// 图片栅格矩阵
            /// </summary>
            GridLayout = 5
        }
        /// <summary>
        ///留言/评论/追加评论/回复 
        /// </summary>
        public enum CommentType
        {
            /// <summary>
            /// 系统留言 不与其他表绑定关系统
            /// </summary>
            SystemComment = 1,
            /// <summary>
            /// 系统留言回复
            /// </summary>
            SystemResponse = 2,
            /// <summary>
            /// 文章/新闻 留言 与NewsEntity绑定
            /// </summary>
            NewsComment = 3,
            /// <summary>
            /// 文章/新闻 留言回复
            /// </summary>
            NewsResponse =4,
            /// <summary>
            /// 商品评论 与ProductEntity绑定
            /// </summary>
            ProductComment = 5,
            /// <summary>
            /// 商品评论回复
            /// </summary>
            ProductResponse = 6

        }

        public enum Sex
        {
            Male = 1,
            Female = 2
        }
       
        /// <summary>
        /// 布局页面展现形式： 单页详情页面/列表展示页面
        /// </summary>
        public enum PageLayoutType
        {
            /// <summary>
            /// 单页详情页面
            /// </summary>
            SingleDetailPage = 1,
            /// <summary>
            /// 文章列表展示
            /// </summary>
            ArticleList = 2
        }
        /// <summary>
        /// 后台计划任务状态码
        /// </summary>
        public enum ScheduleJobActionStatus 
        {
            /// <summary>
            /// 定时周期性任务状态，未运行过(初始化添加) 可执行状态
            /// </summary>
            Normal = TriggerState.Normal,
            /// <summary>
            /// 任务处于暂停状态，可唤醒继续执行
            /// </summary>
            Paused = TriggerState.Paused,
            /// <summary>
            /// 任务自动执行后标识状态，可等待再次唤醒执行
            /// </summary>
            Complete = TriggerState.Complete,
            /// <summary>
            /// 计划任务遇到异常/错误退出时终止执行，
            /// </summary>
            Error = TriggerState.Error,
            /// <summary>
            /// Stop状态针对所有任务(不论单次或是周期性任务)，程序不主动标识Stop,只能由人工手动停止并标识
            /// Stop状态任务不自动唤醒执行，只能人工手动启动
            /// </summary>
            Stop = 10
        }
    }
}
